/**
 * @file hal.h
 * @author wanger
 */
#ifndef __DRIVER_H
#define __DRIVER_H

#include <ioCC2530.h>
#include <clock.h>
#include <timer.h>
#include <bsp.h>
#include <hal_timer.h>

/* 
 * 2011-04-29   chenggang
*@{*/
//interrupt enable 2
SFRBIT( mIEN2   ,  0x9A, _IEN27, _IEN26, WDTIE, P1IE, UTX1IE, UTX0IE, P2IE, RFIE )
//Interrupt Priority 1
SFRBIT( mIP1    ,  0xB9, _IP17, _IP16, IP1_IPG5, IP1_IPG4, IP1_IPG3, IP1_IPG2, IP1_IPG1, IP1_IPG0 )
//Interrupt Priority 2
SFRBIT( mIP0    ,  0xA9, _IP07, _IP06, IP0_IPG5, IP0_IPG4, IP0_IPG3, IP0_IPG2, IP0_IPG1, IP0_IPG0 )
//Timer 1 Status
SFRBIT( mT1STAT ,  0xAF, _T1STAT7, _T1STAT6, OVFIF, CH4IF, CH3IF, CH2IF, CH1IF, CH0IF )  
/** @}**/

#endif

